@import "styles/common.scss";

.wrapper {
    width: 264px;
    height: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.statisticsBox {
    margin: 16px;
    margin-top: 0px;
    background: $bgColor;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    padding: 20px;

    .statisticsTotal {
        flex: 1;

        >p {
            text-align: center;

            &:nth-child(1) {
                padding: 8px 0;
                font-size: 12px;
                color: #9e9e9e;
            }

            &:nth-child(2) {
                padding: 12px 0;
                font-size: 14px;
            }
        }
    }
}

.list {
    flex: 1;
    overflow-y: hidden;
}

.sectionContainer {
    height: 100%;
}

.bookList {
    flex: 1;

    .bookItem {
        padding: 8px;
        display: inline-block;
    }

    .cover {
        background: $wordColor_2;
        border-radius: 8px;
        width: 110px;
        height: 150px;
        padding: 10px;
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-end;
        color: #ffffff;
        cursor: pointer;
        transition: all 0.3s;

        &:hover {
            background: $wordColor_2;
        }

        .bookName {
            text-align: right;
            font-size: 14px;
        }

        .bookLabel {
            visibility: hidden;
            position: absolute;
            top: 0;

            >img {
                height: 30px;
            }
        }
    }

    .bookInfo {
        padding: 4px 2px;
        font-size: 10px;
        text-align: left;

        >p {
            color: #9e9e9e;
            line-height: 16px;
        }
    }
}

.avtive .cover .bookLabel {
    visibility: visible !important;
}


.operation {
    height: 40px;
    background: #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;

    .icon {
        >span {
            font-size: 18px;
            display: inline-block;
            border-radius: 100%;
            padding: 8px;
            color: #fff;
            background: $bgColor;
            margin: 0 8px;
            cursor: pointer;
            user-select: none;
        }
    }

    .addIcon {
        display: inline-block;
        border-radius: 100%;
    }
}